a {
  text-decoration: none;
  color: white;
  &:hover {
    color: rgb(146, 146, 146);
  }
}
.top-bar-wrapper {
  background-color: black;
}
.top-bar {
  max-width: 1200px;
  margin: o auto;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-menu {
  // 显示隐藏菜单
  &:active {
    .nav {
      display: block;
    }
  }
  // position: relative;
  .nav {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    padding-top: 60px;
    li {
      width: 80%;
      margin: 0 auto;
      border-bottom: 1px solid #474646;
      a {
        display: block;
        line-height: 44px;
        font-size: 14px;
      }
      &:last-child a {
        display: inline-block;
        margin-right: 6px;
      }
      span {
        color: white;
        font-size: 14px;
      }
    }
  }
  .menu-icon {
    // background-color: #bfa;
    width: 18px;
    height: 48px;
    position: relative;
    // 导航线
    li {
      width: 18px;
      height: 1px;
      background-color: white;
      position: absolute;
      // 修改旋转点
      transform-origin: left center;
      transition: 0.5s;
    }
    li:nth-child(1) {
      top: 18px;
    }
    li:nth-child(2) {
      top: 24px;
    }
    li:nth-child(3) {
      top: 30px;
    }
    // 鼠标移入效果
    &:active {
      li:nth-child(1) {
        top: 18px;
        // 向下旋转
        transform: rotateZ(42deg);
      }
      li:nth-child(2) {
        top: 24px;
        opacity: 0;
      }
      li:nth-child(3) {
        top: 30px;
        // 向上旋转
        transform: rotateZ(-42deg);
      }
    }
  }
}
.logo {
  a {
    text-indent: -9999px;
    display: block;
    width: 107px;
    height: 30px;
    background: url(../imgs/logo.png) no-repeat 100% 100%;
    background-size: contain;
  }
}
// 设置媒体查询
@media only screen {
  @media (min-width: 768px) {
    .left-menu {
      order: 2;
      flex: auto;

      // 隐藏菜单图标

        &:active {
          .nav {
            display: none;
          }
        }

      .nav {  
        // display: block;
        display: flex;
        position: static;
        padding: 0;
        justify-content: space-around;
        li {
          width: auto;
          border-bottom: none;
          margin: 0;
          a {
            line-height: 48px;
          }
          span {
            display: none;
          }
        }
      }
      .menu-icon {
        display: none;
      }
    }
    .logo {
      order: 1;
    }
    .user-info {
      order: 3;
    }
  }
}
